﻿<!DOCTYPE HTML>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="renderer" content="webkit|ie-comp|ie-stand">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
		<meta http-equiv="Cache-Control" content="no-siteapp" />
		<LINK rel="Bookmark" href="/favicon.ico">
		<LINK rel="Shortcut Icon" href="/favicon.ico" />
		<!--[if lt IE 9]>
        <script type="text/javascript" src="../lib/html5.js"></script>
        <script type="text/javascript" src="../lib/respond.min.js"></script>
        <script type="text/javascript" src="../lib/PIE-2.0beta1/PIE_IE678.js"></script>
        <![endif]-->
        <link rel="stylesheet" href="../css/currency/bootstrap.css" />
		<link href="../css/H-ui.min.css" rel="stylesheet" type="text/css" />
		<link href="../css/H-ui.admin.css" rel="stylesheet" type="text/css" />
		<link href="../css/style.css" rel="stylesheet" type="text/css" />
		<link href="../lib/Hui-iconfont/1.0.1/iconfont.css" rel="stylesheet" type="text/css" />
		<!--[if IE 6]>
        <script type="text/javascript" src="../lib/DD_belatedPNG_0.0.8a-min.js" ></script>
        <script>DD_belatedPNG.fix('*');</script>
        <![endif]-->
		<title>用户列表</title>
	</head>

	<body>
		<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 权限管理 <span class="c-gray en">&gt;</span> 用户列表
			<a class="btn btn-success radius r mr-20" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新"><i class="Hui-iconfont">&#xe68f;</i></a>
		</nav>
		<div class="pd-20"  id="show-user-list" v-cloak>
			<div class="text-c">
				<form search-form>
					<input type="text" class="input-text" style="width:250px" placeholder="请输入手机号码\用户名\账号" v-model="searchData.param1">
					<input id="hiddenText" type="text" style="display:none" class="input-text">
					<div id="selectBtnEnter" class="btn btn-success" @click="search"><i class="Hui-iconfont">&#xe665;</i> 搜用户</div>
				</form>
			</div>
			<div class="cl pd-5 bg-1 bk-gray mt-20"> <span class="l">
				<!-- <a href="javascript:;" @click="dels"  class="btn btn-danger radius"><i class="Hui-iconfont">&#xe6e2;</i> 批量删除</a> --> 
				<a v-if="permissions.perso_save" href="javascript:;" @click="admin_list_add" class="btn btn-primary radius" ><i class="Hui-iconfont" >&#xe600;</i> 添加用户</a></span> 
				<span class="r">共有数据：<strong>{{pageInfo.total}}</strong> 条</span>
			</div>
			<table class="table table-border table-bordered table-bg">
				<thead>
					<tr>
						<th scope="col" colspan="9" >用户列表</th>
					</tr>
					<tr class="text-c">
						<th width="25">选择</th>
						<th width="100">账号</th>
						<th width="90">用户名</th>
                        <th width="90">手机</th>
                        <th width="100">角色</th>
						<th width="130">注册时间</th>
						<th width="100">启用/锁定</th>
						<th width="100">操作</th>
					</tr>
				</thead>
				<tbody>
					<tr class='text-c' v-for="(item,index) in pageInfo.list">
						<td><input type='checkbox' :value="item.id" @click="cbBtn" /></td>
						<td>{{item.accountCode}}</td>
						<td>{{item.realName}}</td>
						<td>{{item.phoneNum}}</td>
						<td>{{item.roleName}}</td>
						<td>{{item.registerTime | timeF}}</td>
						<td v-if="item.status==1"><span class="label label-default radius" style="color: green;">启用</span></td>
						<td v-else><span class="label label-default radius" style="color: red;">锁定</span></td>
						<td class='td-manage'>
							<span v-if="permissions.perso_startORlock">
							<a style="text-decoration:none" href="javascript:;"  @click="startORlock(item.id,'1')" title="启用" v-if="item.status==2"><i class="Hui-iconfont">&#xe605;</i></a>
							<a style="text-decoration:none" href="javascript:;"  @click="startORlock(item.id,'2')" title="锁定" v-else><i class="Hui-iconfont">&#xe60e;</i></a>
							</span>

						<a v-if="permissions.perso_update" title='编辑' href='javascript:;'  @click="admin_list_edit(item.id)" class='ml-5 edit' style='text-decoration:none'><i class='Hui-iconfont'>&#xe60c;</i></a>
						<a v-if="permissions.accou_changePwd" title='修改密码' href='javascript:;'  @click="change_password(item.id)" class='ml-5 edit' style='text-decoration:none'><i class='Hui-iconfont'>&#xe63f;</i></a>
						<!-- <a title='删除' href='javascript:;' @click="del(item.id)" class='ml-5 del' style='text-decoration:none'><i class='Hui-iconfont'>&#xe6e2;</i></a> -->
					</td>


					</tr>
				</tbody>
			</table>

            <div v-if="pageInfo.total <= 0">没有查到数据</div>
            <div v-else class="pageBox">
                <div class="pageInfo">显示 <span id="startRow">{{pageInfo.startRow}}</span> 到 <span id="endRow">{{pageInfo.endRow}}</span> ，共 <span id="total">{{pageInfo.total}}</span> 条</div>
                <ul class="pagination" id="pagination"></ul>
            </div>
		</div>
		<script type="text/javascript" src="../lib/jquery/1.9.1/jquery.min.js"></script>
		<script type="text/javascript" src="../lib/layer/1.9.3/layer.js"></script>
		<script type="text/javascript" src="../lib/laypage/1.2/laypage.js"></script>
		<script type="text/javascript" src="../lib/My97DatePicker/WdatePicker.js"></script>
		<script type="text/javascript" src="../js/common/H-ui.js"></script>
		<script type="text/javascript" src="../js/common/H-ui.admin.js"></script>
		<script type="text/javascript" src="../js/utils/utils.js"></script>
		<script type="text/javascript" src="../js/currency/vue.js"></script>
		<script type="text/javascript" src="../js/currency/vue-resource.min.js"></script>
		<script type="text/javascript" src="../js/currency/base.js"></script>
        <script type="text/javascript" src="../js/currency/jqPaginator.js"></script>
		<script type="text/javascript" src="../js/admin-list.js"></script>
	</body>

</html>